/*!
    \file    change log.txt
    \brief   change log for GD32F350R_EVAL Demo Suites

    \version 2026-01-01, V2.6.0, demo for GD32F3x0
*/

/*
    Copyright (c) 2026, GigaDevice Semiconductor Inc.

    Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this 
       list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright notice, 
       this list of conditions and the following disclaimer in the documentation 
       and/or other materials provided with the distribution.
    3. Neither the name of the copyright holder nor the names of its contributors 
       may be used to endorse or promote products derived from this software without 
       specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.
*/
******************* V2.6.0 2026-01-01 ************************************************************************************
______________________Common______________________________________________________________________________________________
Fix file:
..\Projects\all demos\GD32EBuilder_project

fix reason:
Add GD32EBuilder_project project.

V2.5.0:
none

V2.6.0:
Add GD32EBuilder_project project.
__________________________________________________________________________________________________________________________
______________________gd32f350r_eval.c____________________________________________________________________________________
Fix file:
..\Utilities\gd32f350r_eval.c

fix reason:
Add int __io_putchar(int ch) function.

V2.5.0:
none

V2.6.0:
#if defined(__GNUC__) && !defined(__clang__)/* For GNU GCC compiler */
/* retarget the C library printf function to the USART, in Eclipse GCC environment */
int __io_putchar(int ch)
{
    usart_data_transmit(EVAL_COM, (uint8_t) ch );
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));
    return ch;
}
#else
/* retarget the C library printf function to the USART */
int fputc(int ch, FILE *f)
{
    usart_data_transmit(EVAL_COM, (uint8_t)ch);
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));

    return ch;
}
#endif /* defined(__GNUC__) && !defined(__clang__) */
__________________________________________________________________________________________________________________________
______________________Common______________________________________________________________________________________________
Fix file:
..\Projects\07_RS485_Test\main.c
..\Projects\11_I2C_EEPROM\main.c
..\Projects\17_RCU_Clock_Out\main.c
..\Projects\20_RTC_Calendar\main.c

fix reason:
Deleted int fputc(int ch, FILE *f) function.

V2.5.0:
/* retarget the C library printf function to the USART */
int fputc(int ch, FILE *f)
{
    usart_data_transmit(EVAL_COM, (uint8_t)ch);
    while(RESET == usart_flag_get(EVAL_COM, USART_FLAG_TBE));
    return ch;
}

V2.6.0:
none
__________________________________________________________________________________________________________________________
______________________05_USART_HyperTerminal_Interrupt____________________________________________________________________
Fix file:
..\Projects\05_USART_HyperTerminal_Interrupt\main.c
..\Projects\05_USART_HyperTerminal_Interrupt\gd32f3x0_it.c
..\Projects\05_USART_HyperTerminal_Interrupt\systick.c

fix reason:
Adapt to EB projects.

V2.5.0:
uint16_t tx_count, rx_count;

extern uint16_t tx_count, rx_count;

static uint32_t delay;

V2.6.0:
__IO uint16_t tx_count;
__IO uint16_t rx_count;

extern __IO uint16_t tx_count;
extern __IO uint16_t rx_count;

volatile static uint32_t delay;
__________________________________________________________________________________________________________________________
______________________06_USART_DMA________________________________________________________________________________________
Fix file:
..\Projects\06_USART_DMA\systick.c

fix reason:
Adapt to EB projects.

V2.5.0:
static uint32_t delay;

V2.6.0:
volatile static uint32_t delay;
__________________________________________________________________________________________________________________________
______________________07_RS485_Test________________________________________________________________________________________
Fix file:
..\Projects\07_RS485_Test\main.c
..\Projects\07_RS485_Test\gd32f3x0_it.c
..\Projects\07_RS485_Test\systick.c

fix reason:
Adapt to EB projects.

V2.5.0:
uint16_t tx_count = 0, rx_count = 0;
rs485_mode_enum rs485_mode = IDLE;

extern uint16_t tx_count, rx_count;

static uint32_t delay;

V2.6.0:
__IO uint16_t tx_count = 0;
__IO uint16_t rx_count = 0;
volatile rs485_mode_enum rs485_mode = IDLE;

extern __IO uint16_t tx_count;
extern __IO uint16_t rx_count;

volatile static uint32_t delay;
__________________________________________________________________________________________________________________________
______________________08_ADC_conversion_triggered_by_timer________________________________________________________________
Fix file:
..\Projects\08_ADC_conversion_triggered_by_timer\main.c
..\Projects\08_ADC_conversion_triggered_by_timer\Soft_Drive\font.h

fix reason:
ADD timer_struct_para_init and timer_channel_output_struct_para_init functions.

V2.5.0:
none

define hz16_num             100
#define hz24_num            100

V2.6.0:
    timer_struct_para_init(&timer_initpara);
    timer_channel_output_struct_para_init(&timer_ocintpara);

#define hz16_num             5
#define hz24_num            5
__________________________________________________________________________________________________________________________
______________________14_SPI_TFT_LCD_Driver_______________________________________________________________________________
Fix file:
..\14_SPI_TFT_LCD_Driver\Soft_Drive\tft_test.c

fix reason:
Adapt to EB projects.

V2.5.0:
     for(i = 0;i < 10;i ++){
         gui_draw_font_num32(50 + (i % 3) * 40,32 * (i / 3) + 50,WHITE,BLUE,num[i + 1]);
         delay_1ms(100);
     }

V2.6.0:
     for(i = 0;i < 10;i ++){
         gui_draw_font_num32(50 + (i % 3) * 40,32 * (i / 3) + 50,WHITE,BLUE,num[i]);
         delay_1ms(100);
     }
__________________________________________________________________________________________________________________________
______________________15_HDMI-CEC_HostSlaveCommunication__________________________________________________________________
Fix file:
..\15_HDMI-CEC_HostSlaveCommunication\gd32f3x0_it.c
..\15_HDMI-CEC_HostSlaveCommunication\main.c
..\15_HDMI-CEC_HostSlaveCommunication\Soft_Drive\font.h
..\15_HDMI-CEC_HostSlaveCommunication\Soft_Drive\tft_test.c

fix reason:
Adapt to EB projects.

V2.5.0:
uint8_t rcvdata[10];
uint8_t *transdata;
__IO uint8_t rcvstatus = 0;
__IO uint8_t send_inc = 0, rcv_inc = 0;
uint16_t senderrorcode = 0;
uint16_t rcverrorcode = 0;
__IO uint8_t bytenum = 0;

extern uint8_t rcvdata[10];
extern uint8_t rcv_inc;
extern uint8_t bytenum;

#define hz16_num             100
#define hz16_num             5

    for(i = 0;i < 10;i ++){
         gui_draw_font_num32(50 + (i % 3) * 40,32 * (i / 3) + 50,WHITE,BLUE,num[i + 1]);
         delay_ms(100);
     }

V2.6.0:
volatile uint8_t rcvdata[10];
uint8_t * volatile transdata;
__IO uint8_t rcvstatus = 0U;
__IO uint8_t send_inc = 0U;
__IO uint8_t rcv_inc = 0U;
uint16_t senderrorcode = 0U;
uint16_t rcverrorcode = 0U;
__IO uint8_t bytenum = 0U;

extern volatile uint8_t rcvdata[10];
extern __IO uint8_t rcv_inc;
extern __IO uint8_t bytenum;

#define hz24_num            100
#define hz24_num            5

    for(i = 0;i < 9;i ++){
         gui_draw_font_num32(50 + (i % 3) * 40,32 * (i / 3) + 50,WHITE,BLUE,num[i + 1]);
         delay_ms(100);
     }
__________________________________________________________________________________________________________________________
______________________23_TSI_TouchKey_leds________________________________________________________________________________
Fix file:
..\Projects\23_TSI_TouchKey_leds\Soft_Drive\font.h

fix reason:
Adapt to EB projects.

V2.5.0:
#define hz16_num             100
#define hz16_num             5

V2.6.0:
#define hz24_num            100
#define hz24_num            5
__________________________________________________________________________________________________________________________
______________________24_USB_Device_______________________________________________________________________________________
Fix file:
..\Projects\24_USB_Device\CDC_ACM\inc\usb_conf.h
..\Projects\24_USB_Device\HID_Keyboard\inc\usb_conf.h

fix reason:
Adapt to EB projects.

V2.5.0:
#if defined (__GNUC__)       /* GNU Compiler */
    #ifndef __packed
        #define __packed __unaligned

V2.6.0:
#if defined (__GNUC__)
    #ifdef __packed
        #undef __packed
     #endif
    #define __packed
__________________________________________________________________________________________________________________________
______________________25_USB_Host_________________________________________________________________________________________
Fix file:
..\Projects\25_USB_Host\USBH_HID\inc\usb_conf.h
..\Projects\25_USB_Host\USBH_MSC\inc\usb_conf.h
..\Projects\25_USB_Host\USBH_HID\inc\usb_lcd_conf.h
..\Projects\25_USB_Host\USBH_MSC\inc\usb_lcd_conf.h
..\Projects\25_USB_Host\USBH_MSC\src\gd32f3x0_lcd_eval.c


fix reason:
Adapt to EB projects.

V2.5.0:
#if defined (__GNUC__)       /* GNU Compiler */
    #ifndef __packed
        #define __packed __unaligned

#ifdef __GNUC__
    /* With GCC, small printf (option LD Linker->Libraries->Small printf
       set to 'Yes') calls __io_putchar() */
    #define LCD_LOG_PUTCHAR int __io_putchar(int ch)

__IO uint16_t cur_text_color = 0x0000U;
__IO uint16_t cur_back_color = 0xFFFFU;
__IO uint16_t cur_text_direction = CHAR_DIRECTION_HORIZONTAL;


V2.6.0:
#if defined (__GNUC__)
    #ifdef __packed
        #undef __packed
     #endif
    #define __packed

#ifdef USE_LCD
#if defined(__GNUC__) && !defined(__clang__) /* For GNU GCC compiler */
/* retarget the C library printf function to the USART, in GCC environment */
    #define LCD_LOG_PUTCHAR int __io_putchar(int ch, FILE *f)

uint16_t cur_text_color = 0x0000U;
uint16_t cur_back_color = 0xFFFFU;
uint16_t cur_text_direction = CHAR_DIRECTION_HORIZONTAL;



******************* V2.4.0 2024-08-01 ******************************************************************************************
______________________SPI_______________________________________________________________________________________________________
Fix file:
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option/cc932.c
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option/cc936.c
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option/cc949.c
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option/cc950.c
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option/ccsbcs.c
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option/mycc936.c
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option/syscall.c
GD32F3x0_Demo_Suites/GD32350R_EVAL_Demo_Suites/Projects/13_SPI_TF_Card_FATFS_Operation/ff9/option/unicode.c
fix reason:
fat_fs_OSS rectification
V3.3.0:
cc932.c; cc936.c; cc949.c; cc950.c; ccsbcs.c; mycc936.c; syscall.c; unicode.c;
V3.4.0:
none
__________________________________________________________________________________________________________________________
